package com.aacar.op.utils.pojo.select2;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * jQuery select2 Group  Json result
 * <p>
 * 注意:只输出非Null且非Empty(如List.isEmpty)的属性
 * </p>
 *
 * @author Gongle
 */
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class OptgroupResult implements Serializable {

    public OptgroupResult() {
    }

    public OptgroupResult(String text) {
        this.text = text;
    }

    private String text;
    private List children = new ArrayList();

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public List getChildren() {
        return children;
    }

    public void setChildren(List children) {
        this.children = children;
    }
}
